Skip to content

Conversation

@ilia-kats
Copy link
Collaborator

No description provided.

@ilia-kats ilia-kats requested review from gtca and ilan-gold January 23, 2026 15:39
@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.69%. Comparing base (319de26) to head (5fcdf8b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
+ Coverage   67.30%   68.69%   +1.38%     
==========================================
  Files          12       12              
  Lines        1918     1907      -11     
==========================================
+ Hits         1291     1310      +19     
+ Misses        627      597      -30     
Files with missing lines Coverage Δ
src/mudata/_core/mudata.py 72.76% <100.00%> (+2.59%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@ilan-gold ilan-gold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continue to believe that wrapping this 1-based indexing (i.e., 0 indicates missing) in a method would be helpful. Seems like just adding a method in https://mudata.readthedocs.io/stable/api/generated/mudata.MuData.html#mudata.MuData.obsmap would do it, no?

@ilia-kats
Copy link
Collaborator Author

I'm still not sure what the best approach for that would be. You could convert the zeros to NAs and subtract 1 from the rest on the fly, but that adds quite some overhead if you only need a small subset of the map. I could add a method to just get the indices given an index (be it mask or integer), so essentially just moving map[mask] - 1 into a method), but then one would still need to do the masking manually.

@ilia-kats ilia-kats merged commit 8de09ab into scverse:main Jan 26, 2026
9 checks passed
@ilia-kats ilia-kats deleted the fix_set_names branch January 26, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants